package com.cet.designpatterns.proxy.dynamicproxy;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-15 11:09
 **/
public class Client {
    public static void main(String[] args) {
        ITeacherDao proxyInstance = (ITeacherDao) new ProxyFactory(new TeacherDao()).getProxyInstance();
//        System.out.println(proxyInstance);
        System.out.println(proxyInstance.getClass());
        // proxyInstance.teach();
        proxyInstance.sayHello("Rose");
    }
}
